<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/HomeTemplate.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                >
    <ui:define name="body">
        <div class="main-container" >
            <p:tabMenu id="tab1" model="#{dynamicMenu.getSimpleMenuModel(3)}" style="width: 90%"  />
            <h:form id="form" style="width: 1200px" > 
                <p:panel header="Warranty Information" style="width: 1200px; border-bottom: none">
                    <h:panelGrid columns="4" columnClasses="column" cellpadding="10">  
                        <h:outputText value="Sku:" />
                        <p:inputText value="#{claimBean.temp.sku}" />
                        <h:outputText value="Invoice No: " />
                        <p:inputText value="#{claimBean.temp.invoiceNo}" />
                        <h:outputText value="Claim Description: " />
                        <p:inputText value="#{claimBean.temp.claimDescription}" /> 
                        <h:outputText value="Quantity: " />
                        <p:inputText value="#{claimBean.temp.quantity}" /> 
                        <h:outputText value="Claim Part image(s): " />
                        <p:fileUpload fileUploadListener="#{fileUploadController.upload3}"  
                                      mode="advanced"   
                                      update="messages"  
                                      sizeLimit="600000"   
                                      allowTypes="/(\.|\/)(gif|jpe?g|png)$/"/> 
                                              
                        <p:growl id="messages" showDetail="true"/> 
                    </h:panelGrid>
                            
                </p:panel>
              
                <h:panelGrid columns="2" cellpadding="5" style="border-bottom-width: 30px">  
                    <p:commandButton  value="Clear" icon="pdf" > </p:commandButton> 
                    <p:commandButton  value="Submit" action="#{claimBean.createClaimGear()}" icon="excel"  ajax="false"> </p:commandButton>
                </h:panelGrid>
            </h:form>         
        </div>    
    </ui:define>
</ui:composition>



